package com.sfac.day03.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.sfac.day03.modules.account.entity.Role;
import com.sfac.day03.modules.common.entity.ResultEntity;
import com.sfac.day03.modules.common.entity.SearchBean;

import java.util.List;

public interface RoleService {
    ResultEntity<Role> insertRole(Role role);

    ResultEntity<Role> updateRole(Role role);

    ResultEntity<Object> deleteRoelById(int id);

    Role getRoleById(Integer id);

    List<Role> getRolesByUserId(Integer userId);

    List<Role> getRoles();

    PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);
}
